package com.tsing.cli.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 分页请求父类
 *
 * @author TheTsing
 */
@Getter
@Setter
@ToString
public class BasePageVO {

    @NotNull(message = "页码不能为空")
    @DecimalMin(value = "1", message = "页码不能小于1")
    @Schema(description = "页码", example = "1")
    private Integer pageNum;

    @NotNull(message = "分页大小不能为空")
    @DecimalMin(value = "1", message = "分页大小不能小于1")
    @Schema(description = "分页大小", example = "10")
    private Integer pageSize;

}
